public  class Person  {
	String name;
	int age;
	{
		System.out.println("父类的无参构造函数");
	}
	
	static {
		System.out.println("父类的static");	
	}
	
	Person(){
		System.out.println("父类的无参构造函数");
	}

	Person(String name,int age){
		this.name = name;
		this.age = age;
		System.out.println("父类的有参构造函数");
	}
	void eat()
	{
		System.out.println("父类吃饭");
	}

	public static void main(String arg[])
	{
		System.out.println("父类的主方法");
		Person p = new Person("王晓",40);
		p.eat();
	}
}
